const file = require('../../tool/file');//文件读写与控制台输入输出工具

/**
 * 案件关联码脚本
 * @param caseInfo 案件信息,详见component/caseFile.js
 * @returns caseInfo 案件信息,详见component/caseFile.js
 */
const start = async (caseInfo = {}) => {
  let affinityCode = await file.input(['请输入案件关联码']);
  caseInfo.affinityCode = affinityCode[0];
  return caseInfo;
}

module.exports = start;